package com.sinothk.fc.app.controller;

import com.sinothk.fc.app.entity.HomePageDataBean;
import com.sinothk.fc.app.service.IAppHomeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* @Description: Home
* @Author: Liangyt
* @Date:   2022-09-23
* @Version: V1.0
*/
@Api(tags="Home")
@RestController
@RequestMapping("/fc/appHomeCtrl")
@Slf4j
public class AppHomeController {

   private final IAppHomeService appHomeService;

    public AppHomeController(IAppHomeService appHomeService) {
        this.appHomeService = appHomeService;
    }


    /**
     * 查询Home页提示数据
     *
     * @return
     */
    @AutoLog(value = "查询Home页提示数据")
    @ApiOperation(value="查询Home页提示数据", notes="查询Home页提示数据")
    @GetMapping(value = "/getHomePageTipData")
    public Result<HomePageDataBean> getHomePageTipData() throws Exception {
        HomePageDataBean homePageDataBean = appHomeService.getHomePageTipData();
        return Result.OK(homePageDataBean);
    }
}
